import React from 'react';
import {StyleSheet, Text, View, SafeAreaView, Button} from 'react-native';

const PurseList = ({navigation}) => {
  return (
    <SafeAreaView>
      <View style={styles.container}>
        <View style={styles.title}>
          <Text style={styles.titleText}>更換錢包</Text>
        </View>
        <View style={styles.addressList}>
          <View style={styles.address}>
            <Text style={styles.addressText1}>USDT 錢包地址</Text>
            <Text style={styles.addressText2}>
              TJtEmkvttLEjpNcy4QXSwVWr3FagXBgTaa
            </Text>
          </View>
          <View style={styles.address}>
            <Text style={styles.addressText1}>USDT 錢包地址</Text>
            <Text style={styles.addressText2}>
              TJtEmkvttLEjpNcy4QXSwVWr3FagXBgTaa
            </Text>
          </View>
          <View style={styles.address}>
            <Text style={styles.addressText1}>USDT 錢包地址</Text>
            <Text style={styles.addressText2}>
              TJtEmkvttLEjpNcy4QXSwVWr3FagXBgTaa
            </Text>
          </View>
        </View>
        <View style={styles.Operation}>
          <View style={styles.OperationButton}>
            <Button
              title="取消"
              color="#999999"
              onPress={() => navigation.navigate('WithdrawalScreen')}
            />
          </View>
          <View style={styles.OperationButtonRight}>
            <Button
              title="確認"
              color="#FF9800"
              onPress={() => navigation.navigate('WithdrawalScreen')}
            />
          </View>
        </View>
      </View>
    </SafeAreaView>
  );
};

const styles = StyleSheet.create({
  container: {
    paddingLeft: 50,
    paddingRight: 50,
  },
  title: {
    height: 75,
    display: 'flex',
    alignItems: 'center',
    justifyContent: 'center',
  },
  titleText: {
    color: '#17141a',
    fontWeight: 'bold',
    fontSize: 20,
  },
  addressList: {},

  address: {
    height: 110,
    display: 'flex',
    alignItems: 'center',
    backgroundColor: '#6096E6',
    justifyContent: 'center',
    borderRadius: 10,
    paddingBottom: 10,
    marginBottom: 10,
  },
  addressText1: {
    fontSize: 22,
    lineHeight: 30,
    color: 'white',
    fontWeight: 'bold',
  },
  addressText2: {
    fontSize: 12,
    lineHeight: 30,
    color: 'white',
    fontWeight: 'bold',
  },
  amount: {
    marginTop: 10,
  },
  amountText: {
    fontSize: 14,
    fontWeight: 'bold',
    lineHeight: 30,
  },
  amountList: {
    marginTop: 10,
  },
  amountListItem: {
    height: 28,
    lineHeight: 26,
    borderWidth: 1,
    borderColor: '#a8a8a8',
    borderRadius: 8,
    backgroundColor: 'white',
    display: 'flex',
    alignItems: 'center',
    justifyContent: 'center',
    marginBottom: 20,
  },
  Operation: {
    marginTop: 25,
    display: 'flex',
    alignItems: 'center',
    justifyContent: 'center',
    flexDirection: 'row',
  },
  OperationButton: {
    width: 100,
  },
  OperationButtonRight: {
    width: 100,
    marginLeft: 20,
  },
});

export default PurseList;
